home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
M-More Monthly Disks
/
(c)mc.d64
/
bullet dist.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
2KB
|
47 lines
100 PRINT"[147] HOW FAR WILL MY GUN SHOOT? "
110 PRINT"DATA FROM LYMAN RELOADING HANDBOOK"
120 N=29:DIMC$(N),B(N),V(N),Y(N),M(N)
130 FORF=1TON:READC$(F):READB(F):READV(F):READY(F):M(F)=(INT(Y(F)*30/528))/100:NEXT
140 GOTO350
150 DATA222 REM,50,3200,2500,223 REM,55,3300,2766,22/250 REM,55,3810,2933
160 DATA243 WIN,80,3500,3500,243 WIN,100,3070,4000,270 WIN,100,3430,3333
170 DATA270 WIN,130,3140,4000,270 WIN,150,2800,4333,7MM REM MAG,150,3260,4466
180 DATA7MM REM MAG,175,3070,4933,30/30 WIN,150,2410,3500,308 WIN,150,2860,3666
190 DATA308 WIN,180,2610,4166,308 WIN,200,2450,4500,30-06 GOVT,150,2970,3666
200 DATA30-06 GOVT,220,2410,4666,300 H+H MAG,150,3190,3833,300 H+H MAG,180,2920,4666
210 DATA300 H+H MAG,220,2620,4833,444 MARLIN,240,2400,2533,45-70 GOVT,405,1320
220 DATA3333
230 DATA38 SPECIAL,158,855,1833,38 SPECIAL,158,1090,2133,357 MAGNUM,158,1410,2366
240 DATA41 MAGNUM,210,1500,2366,44 MAGNUM,240,1470,2500,45 AUTO,210,710,1466
250 DATA45 AUTO,230,850,1700,45 AUTO,230,945,1833
260 FORF=N1TON2:PRINTC$(F)TAB(13)B(F)TAB(19);:IFV(F)<1000THENPRINT" ";
270 PRINTV(F)TAB(26)Y(F)TAB(33);:IFM(F)<1THENPRINT" ";
280 PRINTM(F):NEXT
290 PRINT" PUSH ANY KEY TO CONTINUE [146][145]"
300 GETQ$:IFQ$=""THEN300
310 RETURN
320 PRINT"CARTRIDGE BULLET YARDS MILES ";
330 PRINT" NAME GRN VEL. TRAVELED [146]";:RETURN
340 PRINT"[147]"
350 PRINT" THIS PROGRAM PRINTS THE MAXIMUM RANGE"
360 PRINT" FOR GUNS SHOT AT A 30 DEGREE ANGLE"
370 PRINT" PUSH KEY FOR DESIRED FUCTION"
380 PRINT" 1 RIFLE DATA TO SCREEN":PRINT" 2 PISTOL DATA TO SCREEN"
390 PRINT" 3 HARD COPY OF ALL TO PRINTER":PRINT" 4 END PROGRAM"
400 GETQ$:IFQ$=""THEN400
410 PRINT"[147]"
420 IFQ$="4"THENPRINT"[147] GOOD BYE.":END
430 IFQ$="3"THENGOSUB470
440 IFQ$="1"THEN:N2=21:N1=1:GOSUB320:GOSUB260
450 IFQ$="2"THEN:N1=22:N2=N:GOSUB320:GOSUB260
460 GOTO340
470 OPEN4,4,4:TB$=CHR$(16)
480 PRINT#4," HOW FAR WILL MY GUN SHOOT ?":PRINT#4
490 PRINT#4," BULLET DISTANCE FROM 30 DEGREES"
500 PRINT#4," CARTRIDGE NAME GRAINS VELOCITY YARDS MILES"
510 PRINT#4,"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
520 FORF=1TON:PRINT#4,C$(F)TB$"21"B(F)TB$"29";:IFV(F)<1000THENPRINT#4," ";
530 PRINT#4,V(F)TB$"41"Y(F)TB$"56";:IFM(F)<1THENPRINT#4," ";
540 PRINT#4,M(F):PRINT#4:NEXT
550 CLOSE4:GOTO340